package com.xdcplus.web.mapper;

import com.xdcplus.mp.mapper.IBaseMapper;
import com.xdcplus.web.common.pojo.dto.ToolProductionLineToolDTO;
import com.xdcplus.web.common.pojo.entity.ToolProductionLineTool;
import com.xdcplus.web.common.pojo.query.ToolProductionLineToolQuery;
import com.xdcplus.web.common.pojo.vo.ToolProductionLineToolVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (ToolProductionLineTool)表数据库访问层
 *
 * @author Man.Chen
 * @since 2024-12-03 16:41:13
 */
public interface ToolProductionLineToolMapper extends IBaseMapper<ToolProductionLineTool> {

    /**
     * 查询(ToolProductionLineTool)
     *
     * @param toolProductionLineToolQuery (ToolProductionLineTool)查询
     * @return {@link List<ToolProductionLineTool>}
     */
    List<ToolProductionLineTool> queryToolProductionLineTool(ToolProductionLineToolQuery toolProductionLineToolQuery);

    void saveToolProductionLineToolTest(ToolProductionLineToolDTO toolProductionLineToolDTO);

    List<ToolProductionLineToolVO> findByOpeId(Long opeId);

    List<ToolProductionLineToolVO> findToolProductionLineTool(@Param("opeId") Long opeId,@Param("toolCode") String toolCode);


    List<Long> findIdByopeId(@Param("opeIdList") List<Long> opeIds);

    List<String> findNameById(@Param("idList") List<Long> ids);

    List<String> findLineById(@Param("idList") List<Long> ids);

    List<String> findCodeById(@Param("idList") List<Long> ids);

    List<ToolProductionLineToolVO> findToolsByOpeId(@Param("idList") List<Long> ids);

}
